<?php

/* 
 * 来源表
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
class storySourceModel extends db_help
{
    public $keyFields = 'sid';//设置主键
    public function __construct() {
        parent::__construct();
        $this->table_name = $this->table('story_source');
    }
    public static function load(){
        return new self();
    }
    public function getName($sid) {
        $where = array(
            'sid' => $sid,
        );
        return $this->getOne('sname', $where);
    }
}

